package com.cmz.tank;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * @author summer
 * @create 2020-02-09 22:50
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        TankFrame tf = new TankFrame();

        int initTankCount = Integer.parseInt((String) PropertMgr.get("initTankCount"));
        // 初始化地方tank
        for (int i = 0; i < initTankCount; i++) {
            tf.tanks.add(new Tank((50 + i*80),200,Dir.DOWN,Group.BAD,tf));
        }
        //new Thread(()->new Audio("audio/war1/wav").loop()).start();
        while (true){
            Thread.sleep(50);
            tf.repaint();
        }
    }

}
